package com.ggb.reactive.config

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
 * @author caseycheng
 * @date 2024/3/12 19:03
 * @doc
 */
@Configuration
class ObjectMapperConfiguration {
    @Bean
    fun javaTimeObjectMapper(): ObjectMapper = with(ObjectMapper()) {
        registerModule(JavaTimeModule())
    }
}